home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / A / 3D Buttons CDEF 1.0b6.sit / 3D Buttons CDEF 1.0b6 / Source / 3D Buttons CDEF source / 3D Buttons CDEF Source Read Me next >
MacBinary  |  1994-12-29  |  5.3 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: 3D Buttons CDEF Source Read Me

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Dec 29 11:52:39 1994, modified Thu Dec 29 11:52:39 1994, creator SimpleText, type ASCII, 4463 bytes "3D Buttons CDEF Source Read Me" , at 0x11ef 752 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1e 33 44 20 42 75 74 | 74 6f 6e 73 20 43 44 45 |..3D But|tons CDE|
|00000010| 46 20 53 6f 75 72 63 65 | 20 52 65 61 64 20 4d 65 |F Source| Read Me|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 00 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 11 6f 00 | 00 02 f0 ab 28 99 d7 ab |......o.|....(...|
|00000060| 28 99 d7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |(.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d0 cb 00 00 |........|........|
|00000080| 33 44 20 42 75 74 74 6f | 6e 73 20 43 44 45 46 2c |3D Butto|ns CDEF,|
|00000090| 20 62 79 20 5a 69 67 20 | 5a 69 63 68 74 65 72 6d | by Zig |Zichterm|
|000000a0| 61 6e 0d 31 2e 30 62 36 | 20 32 39 20 44 65 63 65 |an.1.0b6| 29 Dece|
|000000b0| 6d 62 65 72 20 31 39 39 | 34 0d 0d 33 44 20 42 75 |mber 199|4..3D Bu|
|000000c0| 74 74 6f 6e 73 20 69 73 | 20 61 20 63 6f 6e 74 72 |ttons is| a contr|
|000000d0| 6f 6c 20 64 65 66 69 6e | 69 74 69 6f 6e 20 28 43 |ol defin|ition (C|
|000000e0| 44 45 46 29 20 74 68 61 | 74 20 69 6d 70 6c 65 6d |DEF) tha|t implem|
|000000f0| 65 6e 74 73 20 74 68 65 | 20 33 44 20 69 6e 74 65 |ents the| 3D inte|
|00000100| 72 66 61 63 65 20 61 73 | 20 73 75 67 67 65 73 74 |rface as| suggest|
|00000110| 65 64 20 69 6e 20 64 65 | 76 65 6c 6f 70 20 69 73 |ed in de|velop is|
|00000120| 73 75 65 20 31 35 2e 20 | 57 68 65 6e 20 64 72 61 |sue 15. |When dra|
|00000130| 77 69 6e 67 20 6f 6e 20 | 61 20 38 2d 62 69 74 20 |wing on |a 8-bit |
|00000140| 28 6f 72 20 62 72 65 61 | 74 65 72 29 20 63 6f 6c |(or brea|ter) col|
|00000150| 6f 72 20 64 65 76 69 63 | 65 20 28 69 6e 20 61 20 |or devic|e (in a |
|00000160| 63 6f 6c 6f 72 20 47 72 | 61 66 50 6f 72 74 29 2c |color Gr|afPort),|
|00000170| 20 33 44 20 42 75 74 74 | 6f 6e 73 20 64 72 61 77 | 3D Butt|ons draw|
|00000180| 73 20 69 6e 20 67 72 65 | 79 2e 20 33 44 20 42 75 |s in gre|y. 3D Bu|
|00000190| 74 74 6f 6e 73 20 64 72 | 6f 70 73 20 74 6f 20 6e |ttons dr|ops to n|
|000001a0| 6f 72 6d 61 6c 20 32 44 | 20 64 72 61 77 69 6e 67 |ormal 2D| drawing|
|000001b0| 20 66 6f 72 20 62 6c 61 | 63 6b 20 61 6e 64 20 77 | for bla|ck and w|
|000001c0| 68 69 74 65 20 28 6f 72 | 20 6c 65 73 73 20 74 68 |hite (or| less th|
|000001d0| 61 6e 20 38 20 62 69 74 | 73 20 6f 66 20 63 6f 6c |an 8 bit|s of col|
|000001e0| 6f 72 29 2e 0d 0d 45 6e | 76 69 72 6f 6e 6d 65 6e |or)...En|vironmen|
|000001f0| 74 0d 33 44 20 42 75 74 | 74 6f 6e 73 20 69 73 20 |t.3D But|tons is |
|00000200| 61 20 4d 65 74 72 6f 77 | 65 72 6b 73 20 43 6f 64 |a Metrow|erks Cod|
|00000210| 65 57 61 72 72 69 6f 72 | 2f 43 57 35 20 70 72 6f |eWarrior|/CW5 pro|
|00000220| 6a 65 63 74 2e 20 54 68 | 65 20 70 72 6f 6a 65 63 |ject. Th|e projec|
|00000230| 74 20 64 6f 65 73 20 6e | 6f 74 20 63 6f 6d 70 69 |t does n|ot compi|
|00000240| 6c 65 20 75 6e 64 65 72 | 20 43 57 2f 34 20 6f 72 |le under| CW/4 or|
|00000250| 20 65 61 72 6c 69 65 72 | 20 64 75 65 20 74 6f 20 | earlier| due to |
|00000260| 73 6f 6d 65 20 73 69 6e | 67 6c 65 2d 73 65 67 6d |some sin|gle-segm|
|00000270| 65 6e 74 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |ent code| resourc|
|00000280| 65 20 6c 69 6e 6b 20 70 | 72 6f 62 6c 65 6d 73 2e |e link p|roblems.|
|00000290| 20 49 20 64 6f 20 6e 6f | 74 20 68 61 76 65 20 53 | I do no|t have S|
|000002a0| 79 6d 61 6e 74 65 63 20 | 43 2f 43 2b 2b 20 37 2c |ymantec |C/C++ 7,|
|000002b0| 20 73 6f 20 49 20 68 61 | 76 65 20 6e 6f 20 69 64 | so I ha|ve no id|
|000002c0| 65 61 20 69 66 20 74 68 | 65 20 43 44 45 46 20 63 |ea if th|e CDEF c|
|000002d0| 61 6e 20 63 6f 6d 70 69 | 6c 65 20 69 6e 20 53 79 |an compi|le in Sy|
|000002e0| 6d 61 6e 74 65 63 20 65 | 6e 76 69 72 6f 6e 6d 65 |mantec e|nvironme|
|000002f0| 6e 74 73 2e 0d 0d 54 68 | 65 20 70 72 6f 6a 65 63 |nts...Th|e projec|
|00000300| 74 20 69 6e 63 6c 75 64 | 65 73 20 74 68 65 20 66 |t includ|es the f|
|00000310| 6f 6c 6c 6f 77 69 6e 67 | 20 66 69 6c 65 73 3a 0d |ollowing| files:.|
|00000320| 43 50 6c 75 73 50 6c 75 | 73 41 34 2e 6c 69 62 0d |CPlusPlu|sA4.lib.|
|00000330| 4d 61 63 4f 53 2e 6c 69 | 62 0d 43 44 45 46 2b 2b |MacOS.li|b.CDEF++|
|00000340| 2e 63 70 0d 49 73 43 6f | 6c 6f 72 51 44 50 72 65 |.cp.IsCo|lorQDPre|
|00000350| 73 65 6e 74 2e 63 70 0d | 4c 43 44 45 46 43 68 65 |sent.cp.|LCDEFChe|
|00000360| 63 6b 62 6f 78 2e 63 70 | 0d 4c 43 44 45 46 43 68 |ckbox.cp|.LCDEFCh|
|00000370| 65 63 6b 62 6f 78 4f 72 | 52 61 64 69 6f 42 75 74 |eckboxOr|RadioBut|
|00000380| 74 6f 6e 2e 63 70 0d 4c | 43 44 45 46 43 6f 6e 74 |ton.cp.L|CDEFCont|
|00000390| 72 6f 6c 2e 63 70 0d 4c | 43 44 45 46 49 63 6f 6e |rol.cp.L|CDEFIcon|
|000003a0| 42 75 74 74 6f 6e 2e 63 | 70 0d 4c 43 44 45 46 50 |Button.c|p.LCDEFP|
|000003b0| 75 73 68 42 75 74 74 6f | 6e 2e 63 70 0d 4c 43 44 |ushButto|n.cp.LCD|
|000003c0| 45 46 50 75 73 68 4f 72 | 49 63 6f 6e 42 75 74 74 |EFPushOr|IconButt|
|000003d0| 6f 6e 2e 63 70 0d 4c 43 | 44 45 46 52 61 64 69 6f |on.cp.LC|DEFRadio|
|000003e0| 42 75 74 74 6f 6e 2e 63 | 70 0d 4c 43 6f 6c 6f 72 |Button.c|p.LColor|
|000003f0| 54 61 62 6c 65 2e 63 70 | 0d 4c 44 65 76 69 63 65 |Table.cp|.LDevice|
|00000400| 4c 6f 6f 70 2e 63 70 0d | 52 65 63 74 54 2e 63 70 |Loop.cp.|RectT.cp|
|00000410| 0d 52 67 6e 48 61 6e 64 | 6c 65 54 2e 63 70 0d 53 |.RgnHand|leT.cp.S|
|00000420| 74 4f 66 66 73 63 72 65 | 65 6e 2e 63 70 0d 53 74 |tOffscre|en.cp.St|
|00000430| 53 61 76 65 43 6c 69 70 | 2e 63 70 0d 53 74 53 61 |SaveClip|.cp.StSa|
|00000440| 76 65 43 6f 6c 6f 72 2e | 63 70 0d 53 74 53 61 76 |veColor.|cp.StSav|
|00000450| 65 45 6d 2e 63 70 0d 53 | 74 53 61 76 65 46 6f 6e |eEm.cp.S|tSaveFon|
|00000460| 74 2e 63 70 0d 53 74 53 | 61 76 65 50 65 6e 2e 63 |t.cp.StS|avePen.c|
|00000470| 70 0d 0d 4f 76 65 72 76 | 69 65 77 0d 54 68 65 20 |p..Overv|iew.The |
|00000480| 73 6f 75 72 63 65 20 66 | 6f 72 20 74 68 65 20 33 |source f|or the 3|
|00000490| 44 20 42 75 74 74 6f 6e | 73 20 43 44 45 46 20 69 |D Button|s CDEF i|
|000004a0| 73 20 62 72 6f 6b 65 6e | 20 69 6e 74 6f 0d a5 20 |s broken| into.. |
|000004b0| 20 74 68 65 20 6d 61 69 | 6e 20 65 6e 74 72 79 20 | the mai|n entry |
|000004c0| 66 75 6e 63 74 69 6f 6e | 3a 0d 20 20 20 20 20 20 |function|:. |
|000004d0| 43 44 45 46 2b 2b 2e 63 | 70 0d a5 20 20 63 6c 61 |CDEF++.c|p.. cla|
|000004e0| 73 73 65 73 20 66 6f 72 | 20 34 20 62 75 74 74 6f |sses for| 4 butto|
|000004f0| 6e 20 76 61 72 69 61 6e | 74 73 3a 0d 20 20 20 20 |n varian|ts:. |
|00000500| 20 20 4c 43 44 45 46 43 | 6f 6e 74 72 6f 6c 0d 20 | LCDEFC|ontrol. |
|00000510| 20 20 20 20 20 4c 43 44 | 45 46 50 75 73 68 4f 72 | LCD|EFPushOr|
|00000520| 49 63 6f 6e 42 75 74 74 | 6f 6e 0d 20 20 20 20 20 |IconButt|on. |
|00000530| 20 4c 43 44 45 46 43 68 | 65 63 6b 62 6f 78 4f 72 | LCDEFCh|eckboxOr|
|00000540| 52 61 64 69 6f 42 75 74 | 74 6f 6e 0d 20 20 20 20 |RadioBut|ton. |
|00000550| 20 20 4c 43 44 45 46 50 | 75 73 68 42 75 74 74 6f | LCDEFP|ushButto|
|00000560| 6e 0d 20 20 20 20 20 20 | 4c 43 44 45 46 43 68 65 |n. |LCDEFChe|
|00000570| 63 6b 62 6f 78 0d 20 20 | 20 20 20 20 4c 43 44 45 |ckbox. | LCDE|
|00000580| 46 52 61 64 69 6f 42 75 | 74 74 6f 6e 0d 20 20 20 |FRadioBu|tton. |
|00000590| 20 20 20 4c 43 44 45 46 | 49 63 6f 6e 42 75 74 74 | LCDEF|IconButt|
|000005a0| 6f 6e 0d a5 20 20 75 74 | 69 6c 69 74 79 20 63 6c |on.. ut|ility cl|
|000005b0| 61 73 73 65 73 3a 0d 20 | 20 20 20 20 20 49 73 43 |asses:. | IsC|
|000005c0| 6f 6c 6f 72 51 44 50 72 | 65 73 65 6e 74 0d 20 20 |olorQDPr|esent. |
|000005d0| 20 20 20 20 4c 43 6f 6c | 6f 72 54 61 62 6c 65 0d | LCol|orTable.|
|000005e0| 20 20 20 20 20 20 4c 44 | 65 76 69 63 65 4c 6f 6f | LD|eviceLoo|
|000005f0| 70 0d 20 20 20 20 20 20 | 53 74 4f 66 66 73 63 72 |p. |StOffscr|
|00000600| 65 65 6e 0d a5 20 20 73 | 74 61 74 65 20 73 61 76 |een.. s|tate sav|
|00000610| 65 72 2f 72 65 73 74 6f | 72 65 72 73 0d 20 20 20 |er/resto|rers. |
|00000620| 20 20 20 53 74 53 61 76 | 65 43 6c 69 70 0d 20 20 | StSav|eClip. |
|00000630| 20 20 20 20 53 74 53 61 | 76 65 43 6f 6c 6f 72 0d | StSa|veColor.|
|00000640| 20 20 20 20 20 20 53 74 | 53 61 76 65 45 6d 0d 20 | St|SaveEm. |
|00000650| 20 20 20 20 20 53 74 53 | 61 76 65 46 6f 6e 74 0d | StS|aveFont.|
|00000660| 20 20 20 20 20 20 53 74 | 53 61 76 65 50 65 6e 0d | St|SavePen.|
|00000670| a5 20 20 43 2b 2b 20 65 | 6e 63 61 70 73 75 6c 61 |. C++ e|ncapsula|
|00000680| 74 69 6f 6e 20 6f 66 20 | 74 6f 6f 6c 62 6f 78 20 |tion of |toolbox |
|00000690| 73 74 72 75 63 74 75 72 | 65 73 0d 20 20 20 20 20 |structur|es. |
|000006a0| 20 52 65 63 74 54 0d 20 | 20 20 20 20 20 52 67 6e | RectT. | Rgn|
|000006b0| 48 61 6e 64 6c 65 54 0d | 0d 45 76 65 72 79 20 66 |HandleT.|.Every f|
|000006c0| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 20 69 6e 74 |unction |call int|
|000006d0| 6f 20 74 68 65 20 43 44 | 45 46 20 63 6f 6d 65 73 |o the CD|EF comes|
|000006e0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 6d 61 69 | through| the mai|
|000006f0| 6e 20 65 6e 74 72 79 20 | 70 6f 69 6e 74 20 69 6e |n entry |point in|
|00000700| 20 43 44 45 46 2b 2b 2e | 63 70 2e 20 54 68 65 20 | CDEF++.|cp. The |
|00000710| 6d 61 69 6e 28 29 20 66 | 75 6e 63 74 69 6f 6e 20 |main() f|unction |
|00000720| 69 6e 20 43 44 45 46 2b | 2b 2e 63 70 20 6a 75 73 |in CDEF+|+.cp jus|
|00000730| 74 20 73 65 74 73 20 75 | 70 20 41 34 20 61 6e 64 |t sets u|p A4 and|
|00000740| 20 72 65 6c 61 79 73 20 | 74 68 65 20 63 61 6c 6c | relays |the call|
|00000750| 20 74 6f 20 4c 43 44 45 | 46 43 6f 6e 74 72 6f 6c | to LCDE|FControl|
|00000760| 3a 3a 4d 61 69 6e 28 29 | 20 28 61 20 73 74 61 74 |::Main()| (a stat|
|00000770| 69 63 20 66 75 6e 63 74 | 69 6f 6e 29 2e 0d 0d 4c |ic funct|ion)...L|
|00000780| 43 44 45 46 43 6f 6e 74 | 72 6f 6c 3a 3a 4d 61 69 |CDEFCont|rol::Mai|
|00000790| 6e 28 29 20 6c 6f 63 6b | 73 20 74 68 65 20 63 6f |n() lock|s the co|
|000007a0| 6e 74 72 6f 6c 20 68 61 | 6e 64 6c 65 20 61 6e 64 |ntrol ha|ndle and|
|000007b0| 20 6d 61 6b 65 73 20 73 | 75 72 65 20 69 74 20 69 | makes s|ure it i|
|000007c0| 73 20 76 61 6c 69 64 20 | 62 65 66 6f 72 65 20 67 |s valid |before g|
|000007d0| 6f 69 6e 67 20 61 6e 79 | 20 66 75 72 74 68 65 72 |oing any| further|
|000007e0| 2e 20 4d 61 69 6e 28 29 | 20 74 68 65 6e 20 63 72 |. Main()| then cr|
|000007f0| 65 61 74 65 73 20 28 6f | 6e 20 74 68 65 20 73 74 |eates (o|n the st|
|00000800| 61 63 6b 29 20 61 6e 20 | 6f 62 6a 65 63 74 20 6f |ack) an |object o|
|00000810| 66 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |f the ap|propriat|
|00000820| 65 20 63 6f 6e 74 72 6f | 6c 20 6b 69 6e 64 20 28 |e contro|l kind (|
|00000830| 70 75 73 68 20 62 75 74 | 74 6f 6e 2c 20 63 68 65 |push but|ton, che|
|00000840| 63 6b 62 6f 78 2c 20 72 | 61 64 69 6f 20 62 75 74 |ckbox, r|adio but|
|00000850| 74 6f 6e 2c 20 6f 72 20 | 69 63 6f 6e 20 62 75 74 |ton, or |icon but|
|00000860| 74 6f 6e 29 2c 20 61 6e | 64 20 72 65 6c 61 79 73 |ton), an|d relays|
|00000870| 20 74 68 65 20 63 61 6c | 6c 20 74 6f 20 74 68 65 | the cal|l to the|
|00000880| 20 6f 62 6a 65 63 74 27 | 73 20 44 69 73 70 61 74 | object'|s Dispat|
|00000890| 63 68 28 29 20 66 75 6e | 63 74 69 6f 6e 2e 0d 0d |ch() fun|ction...|
|000008a0| 4d 6f 73 74 20 6f 66 20 | 74 68 65 20 73 68 61 72 |Most of |the shar|
|000008b0| 65 64 20 77 6f 72 6b 20 | 66 6f 72 20 61 6c 6c 20 |ed work |for all |
|000008c0| 34 20 63 6f 6e 74 72 6f | 6c 20 6b 69 6e 64 73 20 |4 contro|l kinds |
|000008d0| 69 73 20 69 6e 20 4c 43 | 44 45 46 43 6f 6e 74 72 |is in LC|DEFContr|
|000008e0| 6f 6c 2e 20 57 68 65 72 | 65 20 74 68 65 20 77 6f |ol. Wher|e the wo|
|000008f0| 72 6b 20 72 65 71 75 69 | 72 65 64 20 64 69 66 66 |rk requi|red diff|
|00000900| 65 72 65 6e 74 20 63 6f | 64 65 20 66 6f 72 20 64 |erent co|de for d|
|00000910| 69 66 66 65 72 65 6e 74 | 20 63 6f 6e 74 72 6f 6c |ifferent| control|
|00000920| 20 6b 69 6e 64 73 2c 20 | 49 20 6d 61 64 65 20 61 | kinds, |I made a|
|00000930| 20 76 69 72 74 75 61 6c | 20 66 75 6e 63 74 69 6f | virtual| functio|
|00000940| 6e 20 74 6f 20 68 61 6e | 64 6c 65 20 74 68 65 20 |n to han|dle the |
|00000950| 77 6f 72 6b 2c 20 61 6e | 64 20 69 6d 70 6c 65 6d |work, an|d implem|
|00000960| 65 6e 74 65 64 20 74 68 | 65 20 66 75 6e 63 74 69 |ented th|e functi|
|00000970| 6f 6e 20 69 6e 20 74 68 | 65 20 61 70 70 72 6f 70 |on in th|e approp|
|00000980| 72 69 61 74 65 20 63 6c | 61 73 73 2e 20 20 54 68 |riate cl|ass. Th|
|00000990| 65 20 63 6c 61 73 73 20 | 68 69 65 72 61 72 63 68 |e class |hierarch|
|000009a0| 79 3a 0d 0d 20 20 20 20 | 4c 43 44 45 46 43 6f 6e |y:.. |LCDEFCon|
|000009b0| 74 72 6f 6c 0d 20 20 20 | 20 20 20 20 20 4c 43 44 |trol. | LCD|
|000009c0| 45 46 50 75 73 68 4f 72 | 49 63 6f 6e 42 75 74 74 |EFPushOr|IconButt|
|000009d0| 6f 6e 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 4c |on. | L|
|000009e0| 43 44 45 46 50 75 73 68 | 42 75 74 74 6f 6e 0d 20 |CDEFPush|Button. |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 4c 43 44 45 46 | | LCDEF|
|00000a00| 49 63 6f 6e 42 75 74 74 | 6f 6e 0d 20 20 20 20 20 |IconButt|on. |
|00000a10| 20 20 20 4c 43 44 45 46 | 43 68 65 63 6b 62 6f 78 | LCDEF|Checkbox|
|00000a20| 4f 72 52 61 64 69 6f 42 | 75 74 74 6f 6e 0d 20 20 |OrRadioB|utton. |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 4c 43 44 45 46 43 | | LCDEFC|
|00000a40| 68 65 63 6b 62 6f 78 0d | 20 20 20 20 20 20 20 20 |heckbox.| |
|00000a50| 20 20 20 20 4c 43 44 45 | 46 52 61 64 69 6f 42 75 | LCDE|FRadioBu|
|00000a60| 74 74 6f 6e 0d 0d 41 6c | 6c 6f 77 73 20 65 76 65 |tton..Al|lows eve|
|00000a70| 6e 20 6d 6f 72 65 20 73 | 68 61 72 65 64 20 63 6f |n more s|hared co|
|00000a80| 64 65 2c 20 73 69 6e 63 | 65 20 70 75 73 68 20 62 |de, sinc|e push b|
|00000a90| 75 74 74 6f 6e 73 20 61 | 6e 64 20 69 63 6f 6e 20 |uttons a|nd icon |
|00000aa0| 62 75 74 74 6f 6e 73 20 | 61 72 65 20 73 69 6d 69 |buttons |are simi|
|00000ab0| 6c 61 72 20 69 6e 20 74 | 68 65 69 72 20 68 69 67 |lar in t|heir hig|
|00000ac0| 68 6c 69 67 68 74 69 6e | 67 20 61 6e 64 20 72 6f |hlightin|g and ro|
|00000ad0| 75 6e 64 65 64 20 72 65 | 63 74 20 77 6f 72 6b 2c |unded re|ct work,|
|00000ae0| 20 61 6e 64 20 63 68 65 | 63 6b 62 6f 78 65 73 20 | and che|ckboxes |
|00000af0| 61 6e 64 20 72 61 64 69 | 6f 20 62 75 74 74 6f 6e |and radi|o button|
|00000b00| 73 20 61 72 65 20 73 69 | 6d 69 6c 61 72 20 69 6e |s are si|milar in|
|00000b10| 20 74 68 65 69 72 20 73 | 63 72 69 70 74 2d 64 69 | their s|cript-di|
|00000b20| 72 65 63 74 69 6f 6e 20 | 73 65 6e 73 69 74 69 76 |rection |sensitiv|
|00000b30| 65 20 70 6c 61 63 65 6d | 65 6e 74 20 6f 66 20 74 |e placem|ent of t|
|00000b40| 68 65 20 72 61 64 69 6f | 2f 63 68 65 63 6b 62 6f |he radio|/checkbo|
|00000b50| 78 20 6e 65 78 74 20 74 | 6f 20 74 68 65 20 74 69 |x next t|o the ti|
|00000b60| 74 6c 65 2c 20 61 6e 64 | 20 74 68 65 69 72 20 61 |tle, and| their a|
|00000b70| 62 69 6c 69 74 79 20 74 | 6f 20 74 72 69 73 74 61 |bility t|o trista|
|00000b80| 74 65 2e 0d 0d 54 68 65 | 20 43 2b 2b 20 65 6e 63 |te...The| C++ enc|
|00000b90| 61 70 73 75 6c 61 74 69 | 6f 6e 20 6f 66 20 52 67 |apsulati|on of Rg|
|00000ba0| 6e 48 61 6e 64 6c 65 20 | 6c 65 74 73 20 6d 65 20 |nHandle |lets me |
|00000bb0| 63 72 65 61 74 65 20 61 | 6e 64 20 64 65 73 74 72 |create a|nd destr|
|00000bc0| 6f 79 20 72 65 67 69 6f | 6e 73 20 77 69 74 68 6f |oy regio|ns witho|
|00000bd0| 75 74 20 77 6f 72 72 79 | 69 6e 67 20 61 62 6f 75 |ut worry|ing abou|
|00000be0| 74 20 6c 65 61 6b 69 6e | 67 20 61 20 72 65 67 69 |t leakin|g a regi|
|00000bf0| 6f 6e 20 68 61 6e 64 6c | 65 2c 20 6f 72 20 6e 6f |on handl|e, or no|
|00000c00| 74 20 67 65 74 74 69 6e | 67 20 61 6e 20 61 6c 6c |t gettin|g an all|
|00000c10| 6f 63 61 74 69 6f 6e 20 | 64 75 65 20 74 6f 20 65 |ocation |due to e|
|00000c20| 78 74 72 61 6f 72 64 69 | 6e 61 72 69 6c 79 20 6c |xtraordi|narily l|
|00000c30| 6f 77 20 6d 65 6d 6f 72 | 79 2e 20 52 65 63 74 54 |ow memor|y. RectT|
|00000c40| 20 69 73 20 6d 6f 73 74 | 6c 79 20 61 20 63 6f 6e | is most|ly a con|
|00000c50| 76 65 6e 69 65 6e 63 65 | 20 77 72 61 70 70 65 72 |venience| wrapper|
|00000c60| 2c 20 69 6e 69 74 69 61 | 6c 69 7a 69 6e 67 20 74 |, initia|lizing t|
|00000c70| 68 65 20 52 65 63 74 20 | 74 6f 20 63 6f 6e 73 69 |he Rect |to consi|
|00000c80| 73 74 65 6e 74 20 76 61 | 6c 75 65 73 20 73 6f 20 |stent va|lues so |
|00000c90| 49 20 63 61 6e 20 61 76 | 6f 69 64 20 75 6e 69 6e |I can av|oid unin|
|00000ca0| 69 74 69 61 6c 69 7a 65 | 64 20 76 61 72 69 61 62 |itialize|d variab|
|00000cb0| 6c 65 20 62 75 67 73 2e | 20 49 20 75 73 65 20 68 |le bugs.| I use h|
|00000cc0| 69 67 68 65 72 2d 70 6f | 77 65 72 20 76 65 72 73 |igher-po|wer vers|
|00000cd0| 69 6f 6e 73 20 6f 66 20 | 74 68 65 73 65 20 61 6e |ions of |these an|
|00000ce0| 64 20 6f 74 68 65 72 20 | 43 2b 2b 20 77 72 61 70 |d other |C++ wrap|
|00000cf0| 70 65 72 73 20 69 6e 20 | 6d 79 20 77 6f 72 6b 20 |pers in |my work |
|00000d00| 61 6e 64 20 68 6f 62 62 | 79 20 63 6f 64 65 2c 20 |and hobb|y code, |
|00000d10| 61 6e 64 20 6d 79 20 63 | 6f 64 65 20 68 61 73 20 |and my c|ode has |
|00000d20| 67 6f 74 74 65 6e 20 61 | 20 6c 6f 74 20 6d 6f 72 |gotten a| lot mor|
|00000d30| 65 20 72 65 61 64 61 62 | 6c 65 20 61 6e 64 20 61 |e readab|le and a|
|00000d40| 20 6c 6f 74 20 6c 65 73 | 73 20 62 75 67 67 79 20 | lot les|s buggy |
|00000d50| 73 69 6e 63 65 2e 0d 0d | 43 68 61 6e 67 65 20 48 |since...|Change H|
|00000d60| 69 73 74 6f 72 79 0d 31 | 2e 30 62 36 2d 2d 32 38 |istory.1|.0b6--28|
|00000d70| 20 44 65 63 65 6d 62 65 | 72 20 31 39 39 34 0d 43 | Decembe|r 1994.C|
|00000d80| 6f 6d 70 6c 65 74 65 20 | 72 65 77 72 69 74 65 20 |omplete |rewrite |
|00000d90| 66 6f 72 20 43 57 2f 35 | 2e 20 4e 6f 77 20 43 44 |for CW/5|. Now CD|
|00000da0| 45 46 20 75 73 65 73 20 | 6d 6f 72 65 20 66 65 61 |EF uses |more fea|
|00000db0| 74 75 72 65 73 20 6f 66 | 20 43 2b 2b 2c 20 6d 61 |tures of| C++, ma|
|00000dc0| 6b 69 6e 67 20 74 68 65 | 20 63 6f 64 65 20 63 6c |king the| code cl|
|00000dd0| 65 61 6e 65 72 20 61 6e | 64 20 65 61 73 69 65 72 |eaner an|d easier|
|00000de0| 20 74 6f 20 73 75 70 70 | 6f 72 74 2e 0d 31 2e 30 | to supp|ort..1.0|
|00000df0| 62 35 2d 2d 30 36 20 44 | 65 63 65 6d 62 65 72 20 |b5--06 D|ecember |
|00000e00| 31 39 39 34 0d 4c 6f 74 | 73 20 6f 66 20 62 75 67 |1994.Lot|s of bug|
|00000e10| 20 66 69 78 65 73 21 0d | 46 69 78 20 75 73 65 57 | fixes!.|Fix useW|
|00000e20| 46 6f 6e 74 20 62 75 67 | d1 6e 6f 77 20 61 63 74 |Font bug|.now act|
|00000e30| 75 61 6c 6c 79 20 75 73 | 65 73 20 77 69 6e 64 6f |ually us|es windo|
|00000e40| 77 27 73 20 66 6f 6e 74 | 2e 0d 53 61 76 65 20 61 |w's font|..Save a|
|00000e50| 6e 64 20 72 65 73 74 6f | 72 65 20 66 6f 6e 74 2c |nd resto|re font,|
|00000e60| 20 70 65 6e 20 63 6f 6c | 6f 72 2c 20 70 65 6e 20 | pen col|or, pen |
|00000e70| 73 74 61 74 65 2c 20 61 | 6e 64 20 63 6c 69 70 20 |state, a|nd clip |
|00000e80| 72 65 67 69 6f 6e 20 61 | 63 72 6f 73 73 20 64 72 |region a|cross dr|
|00000e90| 61 77 2e 0d 43 6c 69 70 | 20 74 6f 20 69 6e 74 65 |aw..Clip| to inte|
|00000ea0| 72 73 65 63 74 69 6f 6e | 20 6f 66 20 6f 72 69 67 |rsection| of orig|
|00000eb0| 69 6e 61 6c 20 63 6c 69 | 70 20 72 65 67 69 6f 6e |inal cli|p region|
|00000ec0| 20 61 6e 64 20 64 65 76 | 69 63 65 20 77 68 65 6e | and dev|ice when|
|00000ed0| 20 77 61 6c 6b 69 6e 67 | 20 64 65 76 69 63 65 20 | walking| device |
|00000ee0| 6c 69 73 74 2e 0d 48 6f | 6e 6f 72 20 63 6f 6e 74 |list..Ho|nor cont|
|00000ef0| 72 6f 6c 20 61 6e 64 20 | 77 69 6e 64 6f 77 20 61 |rol and |window a|
|00000f00| 75 78 69 6c 6c 69 61 72 | 79 20 63 6f 6c 6f 72 20 |uxilliar|y color |
|00000f10| 74 61 62 6c 65 73 20 28 | 27 63 63 74 62 27 2c 20 |tables (|'cctb', |
|00000f20| 27 77 63 74 62 27 20 61 | 6e 64 20 73 6f 20 6f 6e |'wctb' a|nd so on|
|00000f30| 29 20 77 68 65 6e 20 64 | 72 61 77 69 6e 67 20 69 |) when d|rawing i|
|00000f40| 6e 61 63 74 69 76 65 2f | 66 6c 61 74 20 63 6f 6e |nactive/|flat con|
|00000f50| 74 72 6f 6c 73 2c 20 62 | 61 63 6b 67 72 6f 75 6e |trols, b|ackgroun|
|00000f60| 64 20 6f 66 20 63 68 65 | 63 6b 62 6f 78 65 73 20 |d of che|ckboxes |
|00000f70| 61 6e 64 20 72 61 64 69 | 6f 20 62 75 74 74 6f 6e |and radi|o button|
|00000f80| 73 2e 0d 44 6f 6e 27 74 | 20 66 6f 72 63 65 20 34 |s..Don't| force 4|
|00000f90| 20 63 6f 72 6e 65 72 73 | 20 6f 66 20 70 75 73 68 | corners| of push|
|00000fa0| 62 75 74 74 6f 6e 73 20 | 74 6f 20 30 78 44 44 44 |buttons |to 0xDDD|
|00000fb0| 44 2e 0d 41 6c 73 6f 2c | 20 75 73 65 20 63 6c 61 |D..Also,| use cla|
|00000fc0| 73 73 65 73 20 74 6f 20 | 73 61 76 65 2f 72 65 73 |sses to |save/res|
|00000fd0| 74 6f 72 65 20 74 68 65 | 20 70 65 6e 2c 20 63 6f |tore the| pen, co|
|00000fe0| 6c 6f 72 2c 20 63 6c 69 | 70 20 72 65 67 69 6f 6e |lor, cli|p region|
|00000ff0| 2e 0d 31 2e 30 62 34 2d | 2d 33 31 20 4a 75 6c 79 |..1.0b4-|-31 July|
|00001000| 20 31 39 39 34 0d 42 75 | 67 20 46 69 78 d1 73 61 | 1994.Bu|g Fix.sa|
|00001010| 76 65 20 61 6e 64 20 72 | 65 73 74 6f 72 65 20 74 |ve and r|estore t|
|00001020| 68 65 20 70 65 6e 20 63 | 6f 6c 6f 72 20 61 63 72 |he pen c|olor acr|
|00001030| 6f 73 73 20 64 72 61 77 | 73 0d 44 72 61 77 20 33 |oss draw|s.Draw 3|
|00001040| 44 20 62 75 74 74 6f 6e | 73 20 6f 6e 20 34 2d 62 |D button|s on 4-b|
|00001050| 69 74 20 64 65 76 69 63 | 65 73 20 69 66 20 74 68 |it devic|es if th|
|00001060| 6f 73 65 20 64 65 76 69 | 63 65 73 20 61 72 65 20 |ose devi|ces are |
|00001070| 61 6c 73 6f 20 67 72 65 | 79 73 63 61 6c 65 2c 20 |also gre|yscale, |
|00001080| 6e 6f 74 20 63 6f 6c 6f | 72 2e 0d 31 2e 30 62 33 |not colo|r..1.0b3|
|00001090| 2d 2d 32 39 20 4a 75 6c | 79 20 31 39 39 34 0d 41 |--29 Jul|y 1994.A|
|000010a0| 64 64 65 64 20 6f 66 66 | 73 63 72 65 65 6e 20 47 |dded off|screen G|
|000010b0| 57 6f 72 6c 64 20 73 75 | 70 70 6f 72 74 20 73 6f |World su|pport so|
|000010c0| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 74 69 74 6c | the but|ton titl|
|000010d0| 65 73 20 77 6f 75 6c 64 | 20 73 74 6f 70 20 74 68 |es would| stop th|
|000010e0| 61 74 20 61 6e 6e 6f 79 | 69 6e 67 20 66 6c 61 73 |at annoy|ing flas|
|000010f0| 68 69 6e 67 2e 20 4d 61 | 6e 79 20 74 68 61 6e 6b |hing. Ma|ny thank|
|00001100| 73 20 74 6f 20 6f 6e 65 | 20 6f 66 20 6d 79 20 75 |s to one| of my u|
|00001110| 73 65 72 73 20 66 6f 72 | 20 70 6f 69 6e 74 69 6e |sers for| pointin|
|00001120| 67 20 69 74 20 6f 75 74 | 2e 0d 31 2e 30 62 32 2d |g it out|..1.0b2-|
|00001130| 2d 32 30 20 4a 75 6c 79 | 20 31 39 39 34 20 28 6e |-20 July| 1994 (n|
|00001140| 65 76 65 72 20 72 65 6c | 65 61 73 65 64 29 0d 43 |ever rel|eased).C|
|00001150| 61 6c 6c 20 50 65 6e 4e | 6f 72 6d 61 6c 28 29 20 |all PenN|ormal() |
|00001160| 62 65 66 6f 72 65 20 73 | 74 61 72 74 69 6e 67 20 |before s|tarting |
|00001170| 61 6e 79 20 64 72 61 77 | 2e 20 41 6c 65 72 74 73 |any draw|. Alerts|
|00001180| 20 77 6f 75 6c 64 20 6c | 65 61 76 65 20 74 68 65 | would l|eave the|
|00001190| 20 70 65 6e 73 69 7a 65 | 20 61 74 20 28 32 2c 32 | pensize| at (2,2|
|000011a0| 29 20 66 6f 72 20 74 68 | 65 20 64 65 66 61 75 6c |) for th|e defaul|
|000011b0| 74 20 62 75 74 74 6f 6e | 2c 20 77 68 69 63 68 20 |t button|, which |
|000011c0| 74 65 6e 64 65 64 20 74 | 6f 20 6d 61 6b 65 20 4f |tended t|o make O|
|000011d0| 4b 20 62 75 74 74 6f 6e | 73 20 6c 6f 6f 6b 20 61 |K button|s look a|
|000011e0| 77 66 75 6c 20 69 6e 20 | 63 6f 6c 6f 72 2e 0d 00 |wful in |color...|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 00 00 01 00 00 00 02 be | 00 00 01 be 00 00 00 32 |........|.......2|
|00001210| 34 36 33 32 1e 01 1f 01 | 16 33 32 36 3d 01 33 15 |4632....|.326=.3.|
|00001220| 14 06 23 22 2f 01 26 23 | 22 0e 01 1d 01 03 35 34 |..#"/.&#|".....54|
|00001230| 1e 33 44 20 42 75 74 74 | 6f 6e 73 20 43 44 45 46 |.3D Butt|ons CDEF|
|00001240| 20 53 6f 75 72 63 65 20 | 52 65 61 64 20 4d 65 53 | Source |Read MeS|
|00001250| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 ab 43 df 5f 00 00 | 00 00 00 00 02 f0 c1 0d |...C._..|........|
|00001280| 1f 2d 43 3e 6c 3f 10 10 | a7 9f 5d 3b 42 2a 5c 23 |.-C>l?..|..];B*\#|
|00001290| 12 fe 7c 12 83 c1 0d 1f | 2c 44 3d 6b 3f 10 10 a7 |..|.....|,D=k?...|
|000012a0| 9f 5e 3a 42 2a 5c 23 12 | 00 02 00 21 00 00 04 ad |.^:B*\#.|...!....|
|000012b0| 06 10 00 05 00 08 00 77 | 40 1a 08 07 02 03 07 a3 |.......w|@.......|
|000012c0| 12 4a 05 04 05 08 06 04 | 05 06 1d 12 47 02 02 03 |.J......|....G...|
|000012d0| 08 06 03 04 b8 01 54 40 | 1f 07 02 07 05 03 06 28 |......T@|.......(|
|000012e0| 40 00 01 0a 02 01 03 01 | 04 04 08 05 00 1a 0a 08 |@.......|........|
|000012f0| 44 20 01 19 09 55 98 18 | 2b 4e 10 f4 1a 19 4d ed |D ...U..|+N....M.|
|00001300| 00 00 01 ba 00 16 00 00 | 00 00 00 14 00 0f 00 10 |........|........|
|00001310| 00 00 00 12 00 00 00 00 | 00 00 00 00 00 23 00 0e |........|.....#..|
|00001320| 00 0a 00 10 00 00 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 3b 00 0e 00 0a 00 10 | 00 00 00 00 00 00 00 00 |.;......|........|
|00001340| 00 00 00 00 00 96 00 0e | 00 0a 00 10 02 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 9d 00 0e 00 0a 00 10 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 66 00 0e |........|.....f..|
|00001370| 00 0a 00 10 01 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 01 71 00 0e 00 0a 00 10 | 00 00 00 00 00 00 00 00 |.q......|........|
|00001390| 00 00 00 00 03 f3 00 0e | 00 0a 00 10 01 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 03 fb 00 0e 00 0a 00 10 |........|........|
|000013b0| 00 00 00 0c 00 00 00 00 | 00 00 00 00 05 3d 00 0e |........|.....=..|
|000013c0| 00 0a 00 10 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 05 4e 00 0e 00 0a 00 10 | 00 00 00 0c 00 00 00 00 |.N......|........|
|000013e0| 00 00 00 00 0d 98 00 0e | 00 0a 00 10 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 0f 32 00 0e 00 0a 00 10 |........|.2......|
|00001400| 01 00 00 00 00 00 00 00 | 00 00 00 00 0f 33 00 0e |........|.....3..|
|00001410| 00 0a 00 10 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 0f 71 00 0e 00 0a 00 10 | 00 00 00 0c 00 00 00 00 |.q......|........|
|00001430| 00 00 00 00 10 0b 00 0e | 00 0a 00 10 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 10 1e 00 0e 00 0a 00 10 |........|........|
|00001450| 01 00 00 00 00 00 00 00 | 00 00 00 00 10 1f 00 0e |........|........|
|00001460| 00 0a 00 10 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 10 85 00 0e 00 0a 00 10 | 00 00 00 0c 00 00 00 00 |........|........|
|00001480| 00 00 00 00 10 94 00 0e | 00 0a 00 10 00 00 00 00 |........|........|
|00001490| 00 00 00 00 00 00 00 00 | 10 a9 00 0e 00 0a 00 10 |........|........|
|000014a0| 01 00 00 00 00 00 00 00 | 00 00 00 00 10 aa 00 0e |........|........|
|000014b0| 00 0a 00 10 00 00 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 01 00 00 00 02 be 00 00 | 01 be 00 00 00 32 01 2d |........|.....2.-|
|000014d0| c5 d8 17 24 00 00 00 1c | 00 32 00 00 73 74 79 6c |...$....|.2..styl|
|000014e0| 00 00 00 0a 00 80 ff ff | 00 00 00 00 01 2e 23 fc |........|......#.|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+